#! /bin/bash
## author:tian
## jar boot

echo "getway启动测试环境8900-后台运行"
echo kill -9 spt-gateway
jps | grep spt-gateway| awk '{print $1}' | xargs kill -9 

echo boot start
nohup java -server -Xms512M -Xmx512M -Xmn512M -XX:MetaspaceSize=256M -XX:MaxMetaspaceSize=256M   -XX:ReservedCodeCacheSize=256M -XX:MaxDirectMemorySize=1g -jar /usr/local/spt-app/spt-gateway.jar --server.port=8910 --spring.profiles.active=test >/dev/null 2>&1&

echo end
#end
